<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	</head>
<script type="text/javascript">
	
	$(document).ready(function(){
		$("ul li:eq(9)").addClass("active");
	});
	
	
	function check(){
	
	alert("提交成功");
	document.f.action="goods"
	
	}
	
	
	function checktel(){
	var tel=document.f.tel.value;
	if(tel.length==0||tel.substring(0,tel.length)==0){
	alert("电话号码不能为空格或空！");
	}
	}
</script>

		<form  name="f"  onsubmit="return check()" method="post">
			
			<div class="data_form" >
			
					<table align="center"  border="0">
					
				<center><font color="green">	 <h2 >物品登记</h2></font>
				<a href="http://localhost:8080/dorm/goods?action=all" >查看全部</a>
				
				</center>
				
					<tr>
					
							<td ><font color="red">*</font>楼栋号：</td>
							<td><input type="text" id="buildid"  name="buildid" value="${buildid }栋" readonly="readonly" style="margin-top:5px;height:30px;" onblur=""/></td>
							<td> <font color="red">*</font>寝室号：</td>
							<td>
							  <select name ="dorm" id="dorm"  onchange="check_dept()"><!--
            <option selected="selected">选择寝室</option>
            --><c:forEach  varStatus="i" var="dorm" items="${dormlist}">
					 <option value="${dorm.dormName}">${dormBuildName} ${dorm.dormName}</option>
				</c:forEach>
				
        </select>
							
						</td>
						</tr>
					
						<tr>
						<td><font color="red">*</font>姓名：</td>
						<td><input type="text" id="name"  name="name" value=""  style="margin-top:5px;height:30px;" onblur=""/></td>
					<td><font color="red">*</font>学号：</td>
							<td><input type="text" id="num"  name="num" value=""  style="margin-top:5px;height:30px;"  /></td>
						</tr>
						<tr>
						<td><font color="red">*</font>物品名称：</td>
							<td><input type="text" id="goods"  name="goods" value=""  style="margin-top:5px;height:30px;"  /></td>
						
						<td><font color="red">*</font>日期时间：</td>
							<td><input type="text" id="date"  name="date" value="${time }"  style="margin-top:5px;height:30px;" readonly="readonly" /></td>
							
						</tr>
						<tr>
						<td><font color="red">*</font>备注：</td>
							<td><textarea rows="5" cols="" name="tt" id="tt"></textarea></td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						</tr>
						<tr>
						<td></td>
							<td></td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						</tr>
						<tr>
						<tr>
							<td>&nbsp;</td>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input  type="submit" class="btn btn-primary" value="提交" /></td>
						<td>&nbsp;<button class="btn btn-primary" type="button" onclick="javascript:window.history.back(-1)">返回</button></td>
							<td>&nbsp;</td>
						</tr>
					</table>
				
					
					<div align="center">
						<font id="error" color="red">${error }</font>
					</div>
			</div>
		</form>
		
		</html>